
using FriendStar.Domain.Entity.WareHouse;
using FriendStar.Domain.IRepository.WareHouse;
using FriendStar.Repository.WareHouse;
using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugarRepository;

namespace CopyrightFriendStar.Application.WareHouse
{
    public class CYK_16_MX_StoLJKListAcco_ArcApp
    {
        private ICYK_16_MX_StoLJKListAcco_ArcRepository service = new CYK_16_MX_StoLJKListAcco_ArcRepository();

        public List<CYK_16_MX_StoLJKListAcco_ArcEntity> GetList()
        {
            return service.IQueryable().ToList();
        }
        public CYK_16_MX_StoLJKListAcco_ArcEntity GetForm(string keyValue)
        {
            return service.FindEntity(keyValue);
        }
        public void DeleteForm(string keyValue)
        {
            
        }
        public void SubmitForm(CYK_16_MX_StoLJKListAcco_ArcEntity CYK_16_MX_StoLJKListAcco_ArcEntity, string keyValue)
        {
            if (!string.IsNullOrEmpty(keyValue))
            {
                service.Update(CYK_16_MX_StoLJKListAcco_ArcEntity);
            }
            else
            {
                service.Insert(CYK_16_MX_StoLJKListAcco_ArcEntity);
            }
        }
    }
}
